package com.cqw.robot.model;

import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.awt.*;

/**
 * 定义图片行为
 */
@Data
@NoArgsConstructor
@AllArgsConstructor
public class PicAct {

    /**
     * 图片相对路径
     */
    String path;

    /**
     * 动作: -1无动作，0单击, 1右击，2双击，3输入文字, 4输入并回车, 5根据坐标选择后双击
     */
    Integer act = 1;

    /**
     * 操作间隔停留时间
     */
    long time = 500;

    /**
     * 坐标
     */
    Point point;


    public PicAct(String path, Integer act){
        this.path = path;
        this.act = act;
    }

    public PicAct(String path, Integer act, long time){
        this.path = path;
        this.act = act;
        this.time = time;
    }


}
